package com.kingyea.mobilepolice.apimanage.servicehistory.service;

import com.kingyea.mobilepolice.apimanage.servicehistory.bean.ServiceHistory;
import com.kingyea.mobilepolice.apimanage.utils.page.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description ServiceHistory 接口
 * @date Created in 2018-05-05 17:51:23
 */
public interface ServiceHistoryService {

    /**
     * 通过ID查找对象
     *
     * @param serviceSerialNo
     * @param version
     * @return
     */
    ServiceHistory getById(String serviceSerialNo, String version) throws Exception;

    /**
     * 列表
     *
     * @param serviceHistory
     * @return
     */
    List<ServiceHistory> list(ServiceHistory serviceHistory) throws Exception;

    /**
     * 删除
     *
     * @param serviceSerialNo, version
     * @return
     */
    int deleteById(String serviceSerialNo, String version) throws Exception;

    /**
     * 添加
     *
     * @param serviceHistory
     * @return
     */
    ServiceHistory save(ServiceHistory serviceHistory) throws Exception;

    /**
     * 更新
     *
     * @param serviceHistory
     * @return
     */
    ServiceHistory update(ServiceHistory serviceHistory) throws Exception;

    /**
     * @param map
     * @return
     * @author Mr.Lin
     * @date 2018/5/5 19:34
     */
    PageInfo searchByCondition(Map<String, Object> map) throws Exception;
}
